package com.huluobo.a2308douyindemo.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2308douyindemo.R
import com.huluobo.a2308douyindemo.bean.ReplyBean
import com.huluobo.a2308douyindemo.utils.ImageUtils

/**
 *  Created by LC on 2025/10/27.
 */
class ReplyAdapter : BaseQuickAdapter<ReplyBean, BaseViewHolder>(R.layout.item_reply) {
    override fun convert(holder: BaseViewHolder, item: ReplyBean) {
        ImageUtils.loadRoundImage(context, item.userlogo, holder.getView(R.id.item_reply_icon_iv), 10)
        holder.setText(R.id.item_reply_name_tv, item.nickname)
        holder.setText(R.id.item_reply_content_tv, item.content)
        holder.setText(R.id.item_reply_time, item.createtime)
        holder.setText(R.id.item_reply_like_num_tv, item.agreenum.toString())
    }
}